package com.yhb.dao;

import com.yhb.model.Certificate;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface UserIdentifyMapper {
    int addCertificate(@Param("cert") Certificate certificate, @Param("userId") String userId);
    Certificate getCertificate(@Param("userId") String userId);

    int removeCertificate(@Param("userId")String userId);

//    int updateMd5(@Param("hash")String md5, @Param("userId")String userId);

    List<Certificate> getAll();

    Certificate getCertificateByIdMd5(@Param("md5")String md5);

    Certificate getCertificateByIdCode(@Param("idCode")String idCode);

    Long certificatingFollowerCountInRange(@Param("userId")String userId, @Param("startTime") Date startTime, @Param("endTime")Date endTime);
}
